import axios from "axios";

export const getClassesInfo = () => {
  return axios.get("/api/classes");
};
export const getStudentsInfoInClass = id => {
  return axios.get(`/api/classes/${id}`);
};
export const getStudentsInfo = () => {
  return axios.get("/students");
};
export const addClass = data => {
  return axios.post("/api/classes/", data);
};
export const editClass = (id, data) => {
  return axios.put(`/api/classes/${id}/`, data);
};
export const delClass = id => {
  return axios.delete(`/api/classes/${id}/`);
};
export const addStudent = data => {
  return axios.post(`/api/students/`, data);
};
export const editStudent = (id, data) => {
  return axios.put(`/api/students/${id}/`, data);
};
export const delStudent = id => {
  return axios.delete(`/api/students/${id}/`);
};
export const getverifyCode = id => {
  return axios.get(`/image/verification/${id}/`);
};
